home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 125 / MOBICLIC 125.ISO / pc / DATA / DCV125 / DCV125_01 / DCV125_01.swf / scripts / frame_21 / DoAction.as
Text File  |  2010-06-14  |  19KB  |  632 lines

  1. function activeFLE_D()
  2. {
  3.    var _loc2_ = FEN_HAT.FLE_D;
  4.    _loc2_.pCible = FEN_HAT.ACCUEIL;
  5.    _loc2_.gotoAndPlay("E1");
  6.    _loc2_.onRollOver = function()
  7.    {
  8.       gereCursor(2);
  9.       this.gotoAndPlay("E2");
  10.    };
  11.    _loc2_.onRollOut = function()
  12.    {
  13.       gereCursor(1);
  14.       this.gotoAndPlay("E1");
  15.    };
  16.    _loc2_.onPress = function()
  17.    {
  18.       this.gotoAndPlay("E1");
  19.       this.pCible["slideHAT_" + gSlide_HAT]._visible = false;
  20.       this.pCible["slideHAT_" + gSlide_HAT]._y = 0;
  21.       gSlide_HAT += 1;
  22.       this.pCible["slideHAT_" + gSlide_HAT]._visible = true;
  23.       FEN_HAT.SCROLL_._y = FEN_HAT.SCROLL_.pOrigY;
  24.       activeFLE_G();
  25.       if(gSlide_HAT == gNbSlide_HAT)
  26.       {
  27.          gereCursor(1);
  28.          this.gotoAndPlay("E0");
  29.          desactiveClip(this);
  30.       }
  31.    };
  32. }
  33. function activeFLE_G()
  34. {
  35.    function()
  36.    {
  37.       2;
  38.       1;
  39.       "gereCursor";
  40.    }
  41.    var _loc2_ = FEN_HAT.FLE_G;
  42.    _loc2_.pCible = FEN_HAT.ACCUEIL;
  43.    _loc2_.gotoAndPlay("E1");
  44.    _loc2_;
  45.    "onRollOver";
  46. }
  47. function activeFEN_HAT()
  48. {
  49.    var _loc4_ = FEN_HAT.ACCUEIL;
  50.    gNbSlide_HAT = 0;
  51.    gSlide_HAT = 1;
  52.    var _loc3_ = 1;
  53.    while(_loc3_ < 5)
  54.    {
  55.       if(photoStocker["I_" + gModuleName + "_H" + gModuleNum + "_0" + _loc3_] !== undefined)
  56.       {
  57.          var _loc6_ = _loc4_.createEmptyMovieClip("slideHAT_" + _loc3_,chercheDepthPlus(_loc4_,0));
  58.          var _loc5_ = "I_" + gModuleName + "_H" + gModuleNum + "_0" + _loc3_;
  59.          gNbSlide_HAT += 1;
  60.          this["mclR" + _loc3_] = new MovieClipLoader();
  61.          this["mclR" + _loc3_].loadClip(_global.gModulePath + moduleInfo.getResourceById(_loc5_).firstChild.attributes.src,_loc6_);
  62.          this["mclR" + _loc3_].onLoadInit = function(myClip)
  63.          {
  64.             if(myClip._name.split("_")[1] !== "1")
  65.             {
  66.                myClip._visible = false;
  67.             }
  68.             else
  69.             {
  70.                myClip._visible = true;
  71.             }
  72.          };
  73.       }
  74.       _loc3_ = _loc3_ + 1;
  75.    }
  76.    if(gNbSlide_HAT == 1)
  77.    {
  78.       _loc4_ = FEN_HAT.FLE_G;
  79.       _loc4_._visible = 0;
  80.       _loc4_ = FEN_HAT.FLE_D;
  81.       _loc4_._visible = 0;
  82.    }
  83.    else
  84.    {
  85.       activeFLE_D();
  86.    }
  87.    _loc4_ = FEN_HAT.BT_FERMER;
  88.    _loc4_.onRollOver = function()
  89.    {
  90.       gereCursor(2);
  91.       this.gotoAndPlay("E2");
  92.    };
  93.    _loc4_.onRollOut = function()
  94.    {
  95.       gereCursor(1);
  96.       this.gotoAndPlay("E1");
  97.    };
  98.    _loc4_.onPress = function()
  99.    {
  100.       gereCursor(1);
  101.       this.gotoAndPlay("E1");
  102.       removeMovieClip("FEN_HAT");
  103.    };
  104.    _loc4_ = FEN_HAT.SCROLL_;
  105.    _loc4_.pBar = FEN_HAT.SCROLL_BAR;
  106.    _loc4_.pOrigY = _loc4_._y;
  107.    _loc4_.pDiff = _loc4_.pOrigY - _loc4_.pBar._y;
  108.    _loc4_.pMaxY = _loc4_.pBar._y + _loc4_.pBar._height - _loc4_.pDiff - _loc4_._height;
  109.    _loc4_.distSCROLL = _loc4_.pMaxY - _loc4_.pOrigY;
  110.    _loc4_.onRollOver = function()
  111.    {
  112.       gereCursor(3);
  113.       this.gotoAndPlay("E2");
  114.    };
  115.    _loc4_.onRollOut = function()
  116.    {
  117.       gereCursor(1);
  118.       this.gotoAndPlay("E1");
  119.    };
  120.    _loc4_.onPress = function()
  121.    {
  122.       this.pCible = FEN_HAT.ACCUEIL["slideHAT_" + gSlide_HAT];
  123.       this.pCibleMaskHAT = FEN_HAT.masque_HAT;
  124.       gereCursor(4);
  125.       this.onEnterFrame = function()
  126.       {
  127.          if(this.pCible.pDistSLIDE == undefined)
  128.          {
  129.             this.pCible.pDistSLIDE = this.pCible._height - this.pCibleMaskHAT._height;
  130.          }
  131.          if(_ymouse - this._height <= this.pOrigY)
  132.          {
  133.             this._y = this.pOrigY;
  134.          }
  135.          else if(_ymouse - this._height >= this.pMaxY)
  136.          {
  137.             this._y = this.pMaxY;
  138.          }
  139.          else
  140.          {
  141.             this._y = _ymouse - this._height;
  142.          }
  143.          pCent = (this._y - this.pOrigY) * 100 / this.distSCROLL;
  144.          this.pCible._y = (- this.pCible.pDistSLIDE) * pCent / 100;
  145.          updateAfterEvent();
  146.       };
  147.    };
  148.    _loc4_.onRelease = _loc4_.onReleaseOutside = function()
  149.    {
  150.       if(this.hitTest(_xmouse,_ymouse,true))
  151.       {
  152.          gereCursor(3);
  153.       }
  154.       else
  155.       {
  156.          gereCursor(1);
  157.       }
  158.       delete this.onEnterFrame;
  159.    };
  160.    _loc4_ = FEN_HAT.ZONE;
  161.    _loc4_.useHandCursor = 0;
  162.    _loc4_.onRollOver = function()
  163.    {
  164.    };
  165.    _loc4_.onRollOut = function()
  166.    {
  167.    };
  168.    _loc4_.onPress = function()
  169.    {
  170.    };
  171. }
  172. function adapteImage(myC)
  173. {
  174.    if(myC._width > myC._height)
  175.    {
  176.       var _loc2_ = cadreWidth * 100 / myC._width;
  177.       if(myC._height * _loc2_ / 100 > cadreHeight)
  178.       {
  179.          _loc2_ = cadreHeight * 100 / myC._height;
  180.       }
  181.    }
  182.    else
  183.    {
  184.       _loc2_ = cadreHeight * 100 / myC._height;
  185.       if(myC._width * _loc2_ / 100 > cadreWidth)
  186.       {
  187.          _loc2_ = cadreWidth * 100 / myC._width;
  188.       }
  189.    }
  190.    myC._width = myC._width * _loc2_ / 100;
  191.    myC._height = myC._height * _loc2_ / 100;
  192.    var _loc4_ = (cadreWidth - myC._width) / 2;
  193.    myC._x = _loc4_;
  194.    var _loc3_ = (cadreHeight - myC._height) / 2;
  195.    myC._y = _loc3_;
  196.    myC._visible = true;
  197. }
  198. function afficheImage_R(lNum, lCode)
  199. {
  200.    this["CLIP_PHOTO_0" + (lNum + 1)].gotoAndPlay("E1");
  201.    this["CLIP_PHOTO_0" + (lNum + 1)]._alpha = 0;
  202.    this["_R0" + (lNum + 1)].mcImage = this["CLIP_PHOTO_0" + (lNum + 1)];
  203.    var _loc5_ = this["CLIP_PHOTO_0" + (lNum + 1)].ACCUEIL;
  204.    _loc5_.id = lCode;
  205.    var _loc9_ = _loc5_.createEmptyMovieClip("swfHolder_" + lNum,chercheDepthPlus(_loc5_,0));
  206.    this["mclR" + lNum] = new MovieClipLoader();
  207.    this["mclR" + lNum].loadClip(_global.gModulePath + moduleInfo.getResourceById(lCode).firstChild.attributes.src,_loc9_);
  208.    this["mclR" + lNum].onLoadInit = function(myClip)
  209.    {
  210.       cadreWidth = 71.6;
  211.       cadreHeight = 50.5;
  212.       adapteImage(myClip);
  213.       myClip._parent._parent._alpha = 100;
  214.    };
  215.    var _loc4_ = lCode.substr(lCode.length - 1,1);
  216.    var _loc7_ = undefined;
  217.    var _loc8_ = undefined;
  218.    if(soundObjects[gCommentName + "I_R" + gimme2digits(gNoQuestion) + _loc4_] !== undefined)
  219.    {
  220.       _loc7_ = "I_R" + gimme2digits(gNoQuestion) + _loc4_;
  221.    }
  222.    if(soundObjects[gBruitageName + "B_I_R" + gimme2digits(gNoQuestion) + _loc4_] !== undefined)
  223.    {
  224.       _loc8_ = "B_I_R" + gimme2digits(gNoQuestion) + _loc4_;
  225.    }
  226.    this["_R0" + (lNum + 1)].pSon = _loc7_;
  227.    this["_R0" + (lNum + 1)].pBruit = _loc8_;
  228. }
  229. function finBruitageResultat()
  230. {
  231.    gMcRepOk = undefined;
  232.    clearInterval(intervalTempoOk);
  233.    gListeQuestions.splice(0,1);
  234.    gListeQuestionsTotal.splice(0,1);
  235.    if(gResultat == "S")
  236.    {
  237.       gScore += 1;
  238.    }
  239.    if(gQuestion == gNbQuestions)
  240.    {
  241.       texte_NoQuestion.text = gQuestion + "/" + gNbQuestions;
  242.       texte_Score.text = gScore + "/" + gNbQuestions;
  243.       gotoAndStop("resultat");
  244.       play();
  245.    }
  246.    else
  247.    {
  248.       gNoQuestion = gListeQuestions[0];
  249.       gereTextes.videLM();
  250.       gQuestion += 1;
  251.       gotoAndStop("relance");
  252.       play();
  253.    }
  254. }
  255. if(photoStocker["I_" + gModuleName + "_H" + gModuleNum + "_01"] !== undefined)
  256. {
  257.    BT_HATIER.gotoAndPlay("E1");
  258.    BT_HATIER.onRollOver = function()
  259.    {
  260.       gereCursor(2);
  261.       this.gotoAndPlay("E2");
  262.    };
  263.    BT_HATIER.onRollOut = function()
  264.    {
  265.       gereCursor(1);
  266.       this.gotoAndPlay("E1");
  267.    };
  268.    BT_HATIER.onPress = function()
  269.    {
  270.       gereCursor(1);
  271.       this.gotoAndPlay("E1");
  272.       attachMovie("FEN_HAT","FEN_HAT",this._parent.getNextHighestDepth());
  273.       FEN_HAT._x = 165;
  274.       FEN_HAT._y = 15;
  275.       activeFEN_HAT();
  276.    };
  277. }
  278. else
  279. {
  280.    BT_HATIER._visible = false;
  281. }
  282. i = 1;
  283. while(i < 6)
  284. {
  285.    this["texte_LMR" + i]._visible = 0;
  286.    i++;
  287. }
  288. gOk = 1;
  289. texte_NoQuestion.text = gQuestion + "/" + gNbQuestions;
  290. texte_Score.text = gScore + "/" + gNbQuestions;
  291. gereTextes.afficheLM({codeLM:"LM_Q" + gimme2digits(gNoQuestion)});
  292. gListeReponse = [];
  293. var XmlLM = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
  294. var lList = ["A","B","C","D","E"];
  295. i = 4;
  296. while(i >= 0)
  297. {
  298.    var myClip = this["R" + gimme2digits(i + 1)];
  299.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  300.    myClip.gotoAndPlay("E0");
  301.    myClip2._visible = false;
  302.    desactiveClip(myClip);
  303.    desactiveClip(myClip2);
  304.    if(gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(gNoQuestion) + lList[i]) == undefined)
  305.    {
  306.       lList.splice(i,1);
  307.       this["texte_LMR" + gimme2digits(i + 1)]._visible = 0;
  308.    }
  309.    i--;
  310. }
  311. gListeReponse = randomiseList(lList);
  312. if(gListeReponse.length == 0)
  313. {
  314.    var lList = ["A","B","C","D","E"];
  315.    i = 4;
  316.    while(i >= 0)
  317.    {
  318.       if(swfStocker["A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + lList[i]] == undefined)
  319.       {
  320.          lList.splice(i,1);
  321.       }
  322.       i--;
  323.    }
  324.    gType = "SWF";
  325.    gListeReponse = randomiseList(lList);
  326.    if(gListeReponse.length == 0)
  327.    {
  328.       var lList = ["A","B","C","D","E"];
  329.       i = 4;
  330.       while(i >= 0)
  331.       {
  332.          trace(gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]);
  333.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  334.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  335.          if(lSon == undefined && lBruitage == undefined)
  336.          {
  337.             lList.splice(i,1);
  338.          }
  339.          i--;
  340.       }
  341.       gListeReponse = randomiseList(lList);
  342.       gType = "MP3";
  343.       if(gListeReponse.length == 0)
  344.       {
  345.          var lList = ["A","B","C","D","E"];
  346.          i = 4;
  347.          while(i >= 0)
  348.          {
  349.             if(photoStocker["I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + lList[i]] == undefined)
  350.             {
  351.                lList.splice(i,1);
  352.             }
  353.             i--;
  354.          }
  355.          gListeReponse = randomiseList(lList);
  356.          gType = "JPG";
  357.       }
  358.    }
  359. }
  360. else
  361. {
  362.    gType = "LM";
  363. }
  364. trace(gType);
  365. gDone = 0;
  366. gResultat = undefined;
  367. i = 0;
  368. while(i < gListeReponse.length)
  369. {
  370.    var myClip = this["R" + gimme2digits(i + 1)];
  371.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  372.    myClip2.pNum = gimme2digits(i + 1);
  373.    myClip2.mcBouton = myClip;
  374.    myClip._visible = true;
  375.    myClip2._visible = true;
  376.    myClip.gotoAndPlay("E1");
  377.    myClip2.pCode = gListeReponse[i];
  378.    myClip2.pDone = 0;
  379.    trace(gType);
  380.    switch(gType)
  381.    {
  382.       case "LM":
  383.          gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i],numR:gimme2digits(i + 1)});
  384.          var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i]];
  385.          var lH = 26.85;
  386.          if(pClip.LM.texte._height > lH)
  387.          {
  388.             pClip._y -= 13.4 * (pClip.LM.texte._height / lH - 1);
  389.          }
  390.          break;
  391.       case "SWF":
  392.          var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  393.          afficheImage_R(i,myID);
  394.          break;
  395.       case "JPG":
  396.          var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  397.          afficheImage_R(i,myID);
  398.          break;
  399.       case "MP3":
  400.          myClip2.mcSon = this["PICTO_SON_0" + (i + 1)];
  401.          myClip2.mcSon.gotoAndPlay("E1");
  402.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  403.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  404.          if(lSon !== undefined)
  405.          {
  406.             myClip2.pSon = "R" + gimme2digits(gNoQuestion) + lList[i];
  407.          }
  408.    }
  409.    myClip2.gotoAndPlay("E1");
  410.    myClip2.pCode = gListeReponse[i];
  411.    if(myClip2.pCode == "A")
  412.    {
  413.       gMcRepOk = myClip2.mcBouton;
  414.    }
  415.    myClip2.onRollOver = function()
  416.    {
  417.       if(gDone == 0)
  418.       {
  419.          gereCursor(2);
  420.          this.mcBouton.gotoAndPlay("E2");
  421.          joueBruitage({nomSon:"B_" + this.pNum});
  422.          trace(this.pCode);
  423.          switch(gType)
  424.          {
  425.             case "SWF":
  426.             case "JPG":
  427.                if(this.pSon !== undefined)
  428.                {
  429.                   joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  430.                }
  431.                if(this.pBruit !== undefined)
  432.                {
  433.                   var _loc3_ = findID(this.pBruit);
  434.                   if(_loc3_ !== 1)
  435.                   {
  436.                      joueBruitage({nomSon:this.pBruit});
  437.                   }
  438.                   else
  439.                   {
  440.                      joueBruitage({nomSon:this.pBruit,loopSon:2000});
  441.                   }
  442.                }
  443.                this.mcImage.gotoAndStop("E2");
  444.                var _loc4_ = ANIM.createEmptyMovieClip("swfHolder_" + this.pCode,ANIM.getNextHighestDepth());
  445.                this.mclR_Q = new MovieClipLoader();
  446.                this.mclR_Q.loadClip(_global.gModulePath + moduleInfo.getResourceById(this.mcImage.ACCUEIL.id).firstChild.attributes.src,_loc4_);
  447.                break;
  448.             case "MP3":
  449.                myClip2.mcSon.gotoAndPlay("E2");
  450.                if(this.pSon !== undefined)
  451.                {
  452.                   joueSon({nomSon:"R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum)],zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  453.                }
  454.                else
  455.                {
  456.                   joueBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum)]});
  457.                }
  458.          }
  459.       }
  460.    };
  461.    myClip2.onRollOut = function()
  462.    {
  463.       if(gDone == 0)
  464.       {
  465.          gereCursor(1);
  466.          this.gotoAndPlay("E1");
  467.          stopBruitage({nomSon:"B_" + this.pNum});
  468.          gereCursor(1);
  469.          this.mcBouton.gotoAndPlay("E1");
  470.          stopBruitage({nomSon:"B_" + this.pNum});
  471.          switch(gType)
  472.          {
  473.             case "SWF":
  474.             case "JPG":
  475.                if(this.pSon !== undefined)
  476.                {
  477.                   stopComment();
  478.                }
  479.                if(this.pBruit !== undefined)
  480.                {
  481.                   stopBruitage({nomSon:this.pBruit});
  482.                }
  483.                this.mcImage.gotoAndStop("E1");
  484.                removeMovieClip(ANIM["swfHolder_" + this.pCode]);
  485.                break;
  486.             case "MP3":
  487.                myClip2.mcSon.gotoAndPlay("E1");
  488.                if(this.pSon !== undefined)
  489.                {
  490.                   stopComment();
  491.                }
  492.                else
  493.                {
  494.                   stopBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum)]});
  495.                }
  496.          }
  497.       }
  498.    };
  499.    myClip2.onPress = function()
  500.    {
  501.       if(gDone == 0)
  502.       {
  503.          gereCursor(1);
  504.          stopBruitage({nomSon:"B_" + this.pNum});
  505.          gDone = 1;
  506.          trace(gMcRepOk + " ___________________________________ ");
  507.          if(this.pCode == "A")
  508.          {
  509.             PERSO_QUIZ.gotoAndPlay("S");
  510.             gResultat = "S";
  511.             if(gTempoRepOk == undefined)
  512.             {
  513.                joueBruitage({nomSon:"B_SUCCES",actionFin:"finBruitageResultat"});
  514.             }
  515.             else
  516.             {
  517.                joueBruitage({nomSon:"B_SUCCES"});
  518.                intervalTempoOk = setInterval(gClipGen,"finBruitageResultat",gTempoRepOk * 1000);
  519.                gMcRepOk.gotoAndPlay("E4");
  520.             }
  521.          }
  522.          else
  523.          {
  524.             this.mcBouton.gotoAndPlay("E3");
  525.             gResultat = "E";
  526.             PERSO_QUIZ.gotoAndPlay("E");
  527.             if(gTempoRepOk == undefined)
  528.             {
  529.                joueBruitage({nomSon:"B_ECHEC",actionFin:"finBruitageResultat"});
  530.             }
  531.             else
  532.             {
  533.                joueBruitage({nomSon:"B_ECHEC"});
  534.                intervalTempoOk = setInterval(gClipGen,"finBruitageResultat",gTempoRepOk * 1000);
  535.                gMcRepOk.gotoAndPlay("E4");
  536.             }
  537.          }
  538.       }
  539.    };
  540.    i++;
  541. }
  542. var lSon = soundObjects[gCommentName + "Q" + gimme2digits(gNoQuestion)];
  543. if(lSon !== undefined)
  544. {
  545.    joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  546.    BT_RQUEST.gotoAndStop("E1");
  547.    BT_RQUEST.onRollOver = function()
  548.    {
  549.       this.gotoAndPlay("E2");
  550.       gereTextes.afficheIB({mc:this,codeIB:"IB94"});
  551.       joueBruitage({nomSon:"B_RQUEST"});
  552.    };
  553.    BT_RQUEST.onRollOut = function()
  554.    {
  555.       this.gotoAndPlay("E1");
  556.       gereTextes.masqueIB();
  557.       stopBruitage({nomSon:"B_RQUEST"});
  558.    };
  559.    BT_RQUEST.onPress = function()
  560.    {
  561.       this.gotoAndPlay("E3");
  562.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  563.       gereTextes.masqueIB();
  564.       stopBruitage({nomSon:"B_RQUEST"});
  565.    };
  566. }
  567. else
  568. {
  569.    BT_RQUEST.gotoAndStop("E0");
  570.    delete BT_RQUEST.onRollOver;
  571.    delete BT_RQUEST.onRollOut;
  572.    delete BT_RQUEST.onPress;
  573. }
  574. if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  575. {
  576.    if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  577.    {
  578.       var myID = "A_" + gModuleName + "_Q00";
  579.    }
  580.    else
  581.    {
  582.       var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  583.    }
  584. }
  585. else
  586. {
  587.    var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  588. }
  589. var photoholderNom = ANIM.createEmptyMovieClip("swfHolder",chercheDepthPlus(ANIM,0));
  590. this.mclQ = new MovieClipLoader();
  591. this.mclQ.loadClip(_global.gModulePath + moduleInfo.getResourceById(myID).firstChild.attributes.src,photoholderNom);
  592. if(myID.split("")[0] == "I")
  593. {
  594.    this.mclQ.onLoadInit = function(myClip)
  595.    {
  596.       cadreWidth = 303.9;
  597.       cadreHeight = 343.4;
  598.       adapteImage(myClip);
  599.    };
  600. }
  601. var lBruitage = soundObjects[gBruitageName + "B_Q" + gimme2digits(gNoQuestion)];
  602. if(lBruitage !== undefined)
  603. {
  604.    PICTO_SON_Q.gotoAndPlay("E1");
  605.    PICTO_SON_Q.onRollOver = function()
  606.    {
  607.       this.gotoAndPlay("E2");
  608.       joueBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  609.    };
  610.    PICTO_SON_Q.onRollOut = function()
  611.    {
  612.       this.gotoAndPlay("E1");
  613.       stopBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  614.    };
  615. }
  616. var lSon = soundObjects[gCommentName + "RQ" + gimme2digits(gNoQuestion)];
  617. if(lSon !== undefined)
  618. {
  619.    PICTO_SON_Q.gotoAndPlay("E1");
  620.    PICTO_SON_Q.onRollOver = function()
  621.    {
  622.       this.gotoAndPlay("E2");
  623.       joueSon({nomSon:"RQ" + gimme2digits(gNoQuestion),zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  624.    };
  625.    PICTO_SON_Q.onRollOut = function()
  626.    {
  627.       this.gotoAndPlay("E1");
  628.       stopComment();
  629.    };
  630. }
  631. stop();
  632.